What is the use of ActionName Attribute in asp.net MVC?
What is the use of ActionName Attribute in asp.net MVC?
The information provided here is part of Export Import Training online After the exploration of information technology, the world is on our finger tips to get any piece of information. However when I went through different subjects on the web, I realized, like every thing in society, internet also carries the good and the bad. I was surprised to note that, I could not find any good quality free tutorial program to enter in a good business especially in
Steilla Mitchel
10-Mar-2022[ActionName] Attribute :
In asp.net MVC [ActionName] attribte is an action selector which is used for providing different name to the action methods. When we want to call a action method using different name instead of its actual name then we use [ActionName] attribute. See the example below in which there is a action method original name 'Index',
In the above example if we need to call the action method Index then provide a correct way is - http://localhost:12345/home/home. If we use action method name Index instead of home then its throw 'server error in / Application'